package com.mmall.dao;

import com.mmall.pojo.Address;
import com.mmall.pojo.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Address record);

    int insertSelective(Address record);

    Address selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Address record);

    int updateByPrimaryKey(Address record);

    List<Address> selectAddressListByUserId(Integer userId);

    List findAll();

    Address selectDefaultAdress(@Param("userId") Integer userId);
}